package com.itheima.controller;

import com.itheima.service.RedPacketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: cache
 * @description: 领红包的接口
 * @author: zhanghz001
 * @create: 2021-04-27 11:55
 **/
@RestController
@RequestMapping("/red/packet/zhz")
public class ZhzRedPacketController {
    @Autowired
    private RedPacketService redPacketService;
    
    /**
     * 抢红包
     */
    public String grab() {
        return "抢红包" + redPacketService.grab();
    }
}
